<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>日历 - 日记小程序</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }
        body {
            background-color: #f7f7f7;
            color: #333;
            padding-bottom: 60px;
        }
        .header {
            background-color: #42b983;
            color: white;
            padding: 15px;
            text-align: center;
            position: relative;
        }
        .month-selector {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
        }
        .month-arrow {
            color: #999;
            font-size: 16px;
        }
        .current-month {
            font-size: 16px;
            font-weight: bold;
        }
        .calendar {
            background-color: white;
            border-radius: 8px;
            margin: 0 15px 15px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            padding: 10px 0;
            font-size: 12px;
            color: #999;
            border-bottom: 1px solid #eee;
        }
        .days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-gap: 1px;
            padding: 5px;
        }
        .day {
            height: 50px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            font-size: 14px;
        }
        .day-number {
            margin-bottom: 3px;
        }
        .has-diary {
            color: #42b983;
            font-weight: bold;
        }
        .has-diary::after {
            content: "";
            position: absolute;
            bottom: 5px;
            width: 6px;
            height: 6px;
            background-color: #42b983;
            border-radius: 50%;
        }
        .current-day {
            background-color: #e1f5ea;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #42b983;
            font-weight: bold;
        }
        .other-month {
            color: #ccc;
        }
        .diary-preview {
            margin: 0 15px;
        }
        .preview-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .diary-item {
            background-color: white;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .diary-date {
            font-size: 12px;
            color: #999;
            margin-bottom: 5px;
        }
        .diary-mood {
            display: inline-block;
            padding: 2px 8px;
            background-color: #e1f5ea;
            color: #42b983;
            border-radius: 10px;
            font-size: 12px;
            margin-bottom: 8px;
        }
        .diary-content {
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .tabbar {
            position: fixed;
            bottom: 0;
            width: 100%;
            height: 50px;
            background-color: white;
            display: flex;
            border-top: 1px solid #eee;
        }
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #999;
        }
        .tab-item.active {
            color: #42b983;
        }
        .tab-item i {
            font-size: 20px;
            margin-bottom: 3px;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>日历</h1>
    </div>

    <div class="month-selector">
        <div class="month-arrow">
            <i class="fas fa-chevron-left"></i>
        </div>
        <div class="current-month">2023年4月</div>
        <div class="month-arrow">
            <i class="fas fa-chevron-right"></i>
        </div>
    </div>

    <div class="calendar">
        <div class="weekdays">
            <div>日</div>
            <div>一</div>
            <div>二</div>
            <div>三</div>
            <div>四</div>
            <div>五</div>
            <div>六</div>
        </div>
        <div class="days">
            <div class="day other-month">
                <div class="day-number">26</div>
            </div>
            <div class="day other-month">
                <div class="day-number">27</div>
            </div>
            <div class="day other-month">
                <div class="day-number">28</div>
            </div>
            <div class="day other-month">
                <div class="day-number">29</div>
            </div>
            <div class="day other-month">
                <div class="day-number">30</div>
            </div>
            <div class="day other-month">
                <div class="day-number">31</div>
            </div>
            <div class="day">
                <div class="day-number">1</div>
            </div>
            <div class="day">
                <div class="day-number">2</div>
            </div>
            <div class="day">
                <div class="day-number">3</div>
            </div>
            <div class="day has-diary">
                <div class="day-number">4</div>
            </div>
            <div class="day">
                <div class="day-number">5</div>
            </div>
            <div class="day">
                <div class="day-number">6</div>
            </div>
            <div class="day has-diary">
                <div class="day-number">7</div>
            </div>
            <div class="day">
                <div class="day-number">8</div>
            </div>
            <div class="day">
                <div class="day-number">9</div>
            </div>
            <div class="day has-diary">
                <div class="day-number">10</div>
            </div>
            <div class="day">
                <div class="day-number">11</div>
            </div>
            <div class="day">
                <div class="day-number">12</div>
            </div>
            <div class="day has-diary">
                <div class="day-number">13</div>
            </div>
            <div class="day">
                <div class="day-number">14</div>
            </div>
            <div class="day">
                <div class="day-number">15</div>
            </div>
            <div class="day has-diary">
                <div class="day-number">16</div>
            </div>
            <div class="day">
                <div class="day-number">17</div>
            </div>
            <div class="day has-diary">
                <div class="day-number">18</div>
            </div>
            <div class="day current-day">
                <div class="day-number">19</div>
            </div>
            <div class="day">
                <div class="day-number">20</div>
            </div>
            <div class="day">
                <div class="day-number">21</div>
            </div>
            <div class="day">
                <div class="day-number">22</div>
            </div>
            <div class="day">
                <div class="day-number">23</div>
            </div>
            <div class="day">
                <div class="day-number">24</div>
            </div>
            <div class="day">
                <div class="day-number">25</div>
            </div>
            <div class="day">
                <div class="day-number">26</div>
            </div>
            <div class="day">
                <div class="day-number">27</div>
            </div>
            <div class="day">
                <div class="day-number">28</div>
            </div>
            <div class="day">
                <div class="day-number">29</div>
            </div>
            <div class="day">
                <div class="day-number">30</div>
            </div>
            <div class="day other-month">
                <div class="day-number">1</div>
            </div>
            <div class="day other-month">
                <div class="day-number">2</div>
            </div>
            <div class="day other-month">
                <div class="day-number">3</div>
            </div>
            <div class="day other-month">
                <div class="day-number">4</div>
            </div>
            <div class="day other-month">
                <div class="day-number">5</div>
            </div>
            <div class="day other-month">
                <div class="day-number">6</div>
            </div>
        </div>
    </div>

    <div class="diary-preview">
        <div class="preview-title">当日日记</div>
        <div class="diary-item">
            <div class="diary-date">2023年4月18日 星期二 晴</div>
            <div class="diary-mood">开心</div>
            <div class="diary-content">今天是美好的一天，早上去公园跑步，遇到了许多可爱的小狗。中午和朋友一起吃了午饭，下午完成了工作任务，感觉很充实！</div>
        </div>
    </div>

    <div class="tabbar">
        <div class="tab-item">
            <i class="fas fa-book"></i>
            <span>日记</span>
        </div>
        <div class="tab-item active">
            <i class="fas fa-calendar-alt"></i>
            <span>日历</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-chart-line"></i>
            <span>统计</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </div>
    </div>
</body>
</html> 